
from datetime import datetime


class TimeUtils:

    def __int__(self):
        pass

    @staticmethod
    def getNowTime():
        # 获取当前时间
        now = datetime.now()
        # 格式化输出当前时间
        current_time = now.strftime("%Y-%m-%d %H:%M:%S")
        print("当前时间:", current_time)
        return current_time

if __name__ == "__main__":
    str = TimeUtils.getNowTime()
    print(str)